import java.io.*;
import java.math.BigInteger;
//对16进制数据进行处理  生成rsrp的十进制txt文件
//numdata文件中共有242716个数据
public class htest {
    public static void main(String[] args) throws IOException {

        BufferedReader atb = new BufferedReader(new FileReader("D:\\idea\\Cesium_new1\\hdata.txt"));
        int k=0;

        String[] numdata=new String[2606700];
        for (int i = 0; i <30339; i++) {   //30340行数据
            String str = atb.readLine();
            String[] temp = str.split(":");
            String[] temp1=temp[1].split(";");
            String[] temp2=temp1[0].split("\\s+");
        // 1-16是需要用的数据`
            String[] data=new String[8];
            int t=0;

            for (int j = 1; j <17 ; j+=2) {
             data[t]=temp2[j+1].concat(temp2[j]);
//                System.out.print(data[t]);
//                System.out.print("  ");
                String is=  String.valueOf((Integer.valueOf(data[t], 16).shortValue()));
                numdata[k]=is;
              //System.out.println(numdata[k]);
                k++;
             t++;
            }
            //System.out.println(" ");

        }
        atb.close();
        //System.out.println(numdata[1]);
           // System.out.println(numdata[1]);
        BufferedWriter bw=new BufferedWriter( new FileWriter("D:\\idea\\Cesium_new1\\numdata.txt"));
        for (int p = 0; p<30339*8; p++) {



            bw.write(numdata[p]);

            bw.newLine();
        }
      bw.close();

        }



        //new BigInteger("01040000000100000001010000005B94D910DE8F1E41ED66466", 16)
    }

